var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
    'page': '1',
    'pageSize': '20',
    'moduleId': '2',
    'r': 'portal/newslist'
});

module.exports = {
    async getHot() {
        var config = {
            method: 'post',
            url: 'https://bbs.uestc.edu.cn/mobcent/app/web/index.php',
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded',
                'Cookie': 'Cookie_1=value; v3hW_2132_lastact=1646408854%09index.php%09; v3hW_2132_lastcheckfeed=221788%7C1644927351; v3hW_2132_lastvisit=1644922950; v3hW_2132_saltkey=Y5GRDFZG; v3hW_2132_sid=a4K1YT; v3hW_2132_ulastactivity=bc6dcHlMq9FigbEMWBMm9upp3fUZ%2FWydggMmTug%2FIZJqeFUWNdOi'
            },
            data: data
        };
        var lists = await axios(config);
        return lists.data;
    }
};